home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d26 / freetk.arc / LINEAR4.TK < prev    next >
Text File  |  1987-06-16  |  2KB  |  257 lines

  1. TK!2
  2. =v
  3. #1
  4. :n
  5. x1
  6. :s
  7. b
  8. :c
  9.         *****  LINEAR4  ***** 
  10. :f
  11. 0
  12. #2
  13. :n
  14. x2
  15. :s
  16. b
  17. :c
  18.     Sample Matrix of Coefficients:
  19. :f
  20. 0
  21. #3
  22. :n
  23. x3
  24. :s
  25. b
  26. :c
  27.         -------a-------  -b--
  28. :f
  29. 0
  30. #4
  31. :n
  32. x4
  33. :s
  34. b
  35. :c
  36.          1   0   2   0    20
  37. :f
  38. 0
  39. #5
  40. :n
  41. a11
  42. :v
  43. 1
  44. :s
  45. i
  46. :c
  47.          4   2   3   7    86
  48. #6
  49. :n
  50. a12
  51. :v
  52. 0
  53. :s
  54. i
  55. :c
  56.          0   0   2   0    13
  57. #7
  58. :n
  59. a13
  60. :v
  61. 2
  62. :s
  63. i
  64. :c
  65.          2   1   3   4    58
  66. #8
  67. :n
  68. a14
  69. :v
  70. 0
  71. :s
  72. i
  73. #9
  74. :n
  75. b1
  76. :v
  77. 20
  78. :s
  79. i
  80. #10
  81. :n
  82. a21
  83. :v
  84. 4
  85. :s
  86. i
  87. :c
  88. Press [F6] to see more of this sheet
  89. #11
  90. :n
  91. a22
  92. :v
  93. 2
  94. :s
  95. i
  96. #12
  97. :n
  98. a23
  99. :v
  100. 3
  101. :s
  102. i
  103. :c
  104. This model may solve not only for
  105. #13
  106. :n
  107. a24
  108. :v
  109. 7
  110. :s
  111. i
  112. :c
  113. unknown x's, but also for unknown
  114. #14
  115. :n
  116. b2
  117. :v
  118. 86
  119. :s
  120. i
  121. :c
  122. a's and b's.  This not so with the
  123. #15
  124. :n
  125. a31
  126. :v
  127. 0
  128. :s
  129. i
  130. :c
  131. model LINEAR8, which, however, allows
  132. #16
  133. :n
  134. a32
  135. :v
  136. 0
  137. :s
  138. i
  139. :c
  140. up to eight linear equations in eight  
  141. #17
  142. :n
  143. a33
  144. :v
  145. 2
  146. :s
  147. i
  148. :c
  149. unknowns within FREETK restrictions
  150. #18
  151. :n
  152. a34
  153. :v
  154. 0
  155. :s
  156. i
  157. :c
  158. thanks to spelling out the coeffi-
  159. #19
  160. :n
  161. b3
  162. :v
  163. 13
  164. :s
  165. i
  166. :c
  167. cients directly in the Rule Sheet.
  168. #20
  169. :n
  170. a41
  171. :v
  172. 2
  173. :s
  174. i
  175. #21
  176. :n
  177. a42
  178. :v
  179. 1
  180. :s
  181. i
  182. :c
  183. Press [PgDn] or [End] to see the rest
  184. #22
  185. :n
  186. a43
  187. :v
  188. 3
  189. :s
  190. i
  191. #23
  192. :n
  193. a44
  194. :v
  195. 4
  196. :s
  197. i
  198. #24
  199. :n
  200. a410
  201. :v
  202. 0
  203. :s
  204. i
  205. :c
  206. Press [Home] or [PgUp] to go to top
  207. #25
  208. :n
  209. b4
  210. :v
  211. 58
  212. :s
  213. i
  214. :c
  215. Type =R or /WR to see the Rule Sheet
  216. =u
  217. =r
  218. #1
  219. :r
  220. a11*x1 + a12*x2 + a13*x3 + a14*x4 = b1   " The restriction of 32 lines on the
  221. #2
  222. :r
  223. a21*x1 + a22*x2 + a23*x3 + a24*x4 = b2   " FREETK Variable Sheet effectively
  224. #3
  225. :r
  226. a31*x1 + a32*x2 + a33*x3 + a34*x4 = b3   " limits this model to 4 equations
  227. #4
  228. :r
  229. a41*x1 + a42*x2 + a43*x3 + a44*x4 = b4   " in 4 unknowns.
  230. #5
  231. :r
  232.                                          " With TK Solver Plus, only the
  233. :s
  234. C
  235. #6
  236. :r
  237. " available memory limits the expansion of this model.  Moreover, represen-
  238. :s
  239. C
  240. #7
  241. :r
  242. " ting the row of coefficients and the unknowns as lists simplifies the
  243. :s
  244. C
  245. #8
  246. :r
  247. " equations down to dot(a1,x)=b1, dot(a2,x)=b2, and so on. The spreadsheet-
  248. :s
  249. C
  250. #9
  251. :r
  252. " like interactive tables make the coefficient assignment much easier.
  253. :s
  254. C
  255. %Tv,f,0,5,0,1,0
  256. %Or,f,0,1,0,1,0
  257.